<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model backend\modules\backendmenu\modules\role\models\RoleRule */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="role-rule-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'role_id')->dropDownList($model->dropDownRoleList(), ['prompt'=>'----']) ?>

    <?= $form->field($model, 'control')->textInput(['maxlength' => true]) ?>
    <p>
    	<?=$model->getAttributeLabel('control')?>
    	格式：module_id.controller_id.action_id   .*代表所有， module_id.*代码module 下的所有权限
    </p>
    <?= $form->field($model, 'alias_name')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'type')->textInput(['maxlength' => true]) ?>
    <p>
    	类型，涉及到页面的类型
    </p>
    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? Yii::t('debug', 'Create') : Yii::t('debug', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
